package com.ljj.dolls;

import java.util.Objects;

public class AKey extends Key {

    private Integer a;

    private Integer b;

    private Integer c;

    public AKey(Integer a,Integer b,Integer c){
        super();
        setKeys(a,b,c);
    }

    public Integer getA() {
        return a;
    }

    public void setA(Integer a) {
        this.a = a;
    }

    public Integer getB() {
        return b;
    }

    public void setB(Integer b) {
        this.b = b;
    }

    public Integer getC() {
        return c;
    }

    public void setC(Integer c) {
        this.c = c;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AKey aKey = (AKey) o;
        return Objects.equals(a, aKey.a) &&
                Objects.equals(b, aKey.b) &&
                Objects.equals(c, aKey.c);
    }

    @Override
    public int hashCode() {
        return Objects.hash(a, b, c);
    }
}
